package com.cpi.cornpp.sapfiles.view;

import java.util.List;

public class SAPFileView {


	private String logicalFileName;

	private String physicalFileName;
	
	private String system;
	
	private String className;
	
	private String path;
	
	private String importedRecords;
	
	private boolean exist = false;

	private String fullFilePath;
	
	private List content;
	
	private Integer offSetLines;

	public String getLogicalFileName() {
		return logicalFileName;
	}

	public void setLogicalFileName(String logicalFileName) {
		this.logicalFileName = logicalFileName;
	}

	public String getPhysicalFileName() {
		return physicalFileName;
	}

	public void setPhysicalFileName(String physicalFileName) {
		this.physicalFileName = physicalFileName;
	}

	public String getSystem() {
		return system;
	}

	public void setSystem(String system) {
		this.system = system;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public boolean isExist() {
		return exist;
	}

	public void setExist(boolean exist) {
		this.exist = exist;
	}

	public String getRecordsInFile() {
		if(content!=null){
			return String.valueOf(content.size());
		}
		else
			return "";
	}

	public String getImportedRecords() {
		return importedRecords;
	}

	public void setImportedRecords(String importedRecords) {
		this.importedRecords = importedRecords;
	}

	public void setFullFilePath(String fullFilePath) {
		this.fullFilePath = fullFilePath;		
	}

	public String getFullFilePath() {
		return fullFilePath;
	}

	public List getContent() {
		return content;
	}

	public void setContent(List content) {
		this.content = content;
	}

	public Integer getOffSetLines() {
		return offSetLines;
	}

	public void setOffSetLines(Integer offSetLines) {
		this.offSetLines = offSetLines;
	}	
	
	public boolean equals(Object obj) {	
		SAPFileView object = (SAPFileView)obj;
		return this.className.equals(object.getClassName());
	}
	
	
}
